cmake_minimum_required(VERSION 3.16)
project(pat CXX)

set(CMAKE_CXX_STANDARD 11)

enable_testing()
add_subdirectory(third_party/googletest)
include_directories(third_party/googletest/googletest/include)
include_directories(${PROJECT_SOURCE_DIR})
set(GTEST_LIB gtest gtest_main)

add_executable(test_reverse_list PATBasic/reverseList.cc)
target_link_libraries(test_reverse_list gtest gtest_main)

add_executable(printSumPinyin_test PATBasic/printSumPinyin.cc)
target_link_libraries(printSumPinyin_test gtest gtest_main)

add_executable(listHasCycle_test PATBasic/listHasCycle.cc)
target_link_libraries(listHasCycle_test gtest gtest_main)

add_executable(min_window_find_substr_test PATBasic/min_window_find_substr.cc)
target_link_libraries(min_window_find_substr_test gtest gtest_main)
